import { HaoEncrypt } from "../engine/utils/HaoEncrypt";

export class Config {

    //game_ceter服 ip
    public static GameCenter_ip: string = "127.0.0.1"
    //game_ceter服
    public static GameCenterPort: number = 9400;

    public static OneDay: number = 1000 * 60 * 60 * 24


    public static EnvironmentType = {
        Dev: 1,
        Test: 2,
        Online: 3,
        huawei:4
    }

    public static environment: number = Config.EnvironmentType.Test;

    public static Event_Config = {
        Timer: "Timer"
    }

    public static serverType: string;

    public static ServerType_List = {
        Https_Server: "[Https_Server]",
        WebServer: "[WebServer]",
        upload_server: "[upload_server]",
        account_server: "[account_server]",
        hall_server: "[hall_server]",
        log_server: "[log_server]",
        pay_server:"[pay_server]",
        gm_server:"[gm_server]",
        mj_server:"[mj_server]",
        
        // huanghua_mj_server: "[huanghua_mj_server]",
        // ddz_server: "[ddz_server]",
        // jianziding_server: "[jianziding_server]",
        // cangxian_mj_server: "[cangxian_mj_server]",
        // paodekuai_server: "[paodekuai_server]",
        // dazhonger_mj_server: "[dazhonger_mj_server]",
    }

    public static hotupdate_versionStr: string = `
        {
            "iv": "1.0.0.100",
            "av": "1.0.0.101",
            "al": "https://iw.vdsc.cc/",
            "il": "https://iw.vdsc.cc/"
        }
    `
    public static initGameHotupdateVersionConfig() {
        this.hotupdate_versionStr = HaoEncrypt.encode(this.hotupdate_versionStr);
    }



}